package com.guigu.www.denghao.controller;

import com.guigu.www.denghao.service.DHRoleMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/DHRoleMenuController")
public class DHRoleMenuController {

    @Autowired
    private DHRoleMenuService dhRoleMenuService;

    @PutMapping("/up")
    public Integer up (Integer[] menus,Integer roleId){
        dhRoleMenuService.up(menus,roleId);
        return 0;
    }
}
